import request from '@/utils/request'

/**
 * 1. 注册
 */
export const register = (data) => request.post('/h5/user/register', data)

/**
 * 2. 登录
 */
export const login = (data) => request.post('/h5/user/login', data)

/**
 * 3. 获取用户信息
 */
export const getUserInfo = () => request.get('/h5/user/currentUser')
